home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9663 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  25 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!howa
  3. From: howa@netcom.com (Howard N. Egan)
  4. Subject: Need help getting true HEAP available, BC45/dpmi
  5. Message-ID: <howaDnpC39.GAz@netcom.com>
  6. Keywords: heap, getFreeSpace
  7. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  8. Date: Sun, 3 Mar 1996 17:18:45 GMT
  9. Sender: howa@netcom7.netcom.com
  10.  
  11. I am writing a DOS DPMI application with BC 4.52 and am experiencing
  12. some grief trying to establish whether or not I have a memory leak or not.
  13. Since heapwalk() is not available in DPMI, (presumably because 
  14. struct heapinfo is not available in that mode) I am forced to use the 
  15. windows function GetFreeSpace(), which is available with DOS Powerpack.
  16.  
  17. The problem is that it only seems to know about 4096 byte chunks, so when 
  18. memory gets very fragmented, the total available space becomes smaller 
  19. and smaller according to GetFreeSpace().  Is there any code out there that
  20. does the same thing as heapwalk(), but works in DPMI?  Another question,
  21. is there anything similar to code guard available for DOS?  Is there a better
  22. heap management library out there that replaces Borland's?
  23.  
  24.  
  25.